package com.combetter.changxing.util;

/**
 * Created by Mark.fan on 2018/5/9.
 */

public class StringUtils {

    public static String compitalize(final String word) {
        if (word != null && word.length() > 1) {
            return String.valueOf(word.charAt(0)).toUpperCase() + word.substring(1);
        }
        return word;
    }

    public static  String dealPreHeat(String str){
        if (str.contains("s")){
            return str.replaceAll("s","")+"s";
        }else {
            return str+"s";
        }
    }
}
